package sq.service;

import sq.dao.Cart;
import sq.dao.CountStatistics;
import sq.dao.Orders;
import sq.dao.OrdersItem;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: sunquan
 * @Date: 2018/3/30
 * @Time: 14:01
 */

public interface OrdersService {
  List<Cart> findCheckedCart(String checkedId);

  void ordersAdd(String checkedId,double price,HttpServletRequest request);

  List<Orders> findOrders(HttpServletRequest request);

  List<OrdersItem> findOrdersItem(Integer ordersId);

  List<Orders> findAllOrders();
  void receive(Integer ordersId);
  void toReceiveStatus(Integer ordersId);
  void complete(Integer ordersId);

  List<Orders> findFinalOrders();

  List<CountStatistics> findTotalSell(Date begin, Date end);

  List<CountStatistics> findTop(Date begin, Date end);

  List<CountStatistics> findqtTop();
}
